PCTG R Markdown template
logo





Welcome in the PCTG R Markdown template. This document describes how the template looks like, building an interactive Manhattan plot.

Loading data


Let’s load a GWAS summary statistic stored in the qqman library. This library is:

  • Made by Stephen Turner
  • Good to plot a quick Manhattan plot
## Warning: package 'qqman' was built under R version 3.5.3

Show data in a table


It’s often handy to keep a trace of the raw data somewhere in your document. The DT library allows to build interactive tables that you can search, filter, highlight and more.

## Warning: package 'DT' was built under R version 3.5.3

Manhattan plot


Using HTML outputs you can embed some interactive graphics. For example, the plotly library can transform any of your ggplot2 graphic in an interactive chart:

 




A work by Yan Holtz

yan.holtz.data@gmail.com